package com.zhuoyue.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zp
 * @Date: 2019-10-10 14:47
 * @Description:
 */
@Getter
@AllArgsConstructor
public enum ErrorType {
    /**
     * 错误类型
     */
    OBJECT_NOT_FOUND(0, "参数不能为空"),

    INVALID_PARAMS(1, "参数不正确"),

    result_not_exist(2, "记录不存在"),

    Service_Fail(4, "操作失败"),

    Sms_Fail(5, "短信验证码发失败"),

    Sms_Fail_Ex(6, "短信验证码发送异常"),

    Sms_Fail_Time_Out(7, "验证码超时或已失效"),

    Sms_Error(8, "短信验证码错误"),

    Redis_Error(9, "redis操作异常"),

    Sms_NotFoundError(8, "短信验证码不存在"),

    Redis_Can_Not_Connection(9, "redis未连接"),
    Kuai_Shu_Deng_Lu_Error(10, "快速登陆错误"),
    TrueReturn(11, "成功"),
    TOKENEXPIRET(33333, "验证异常"),
    USER_SAVE_ERROR(12, "用户信息保存失败"),
    SAVE_ERROR(13, "保存失败"),
    UPDATE_ERROR(14, "修改失败"),
    REMOVE_ERROR(15, "删除失败");


    /**
     * 错误码
     */
    private int code;

    /**
     * 提示信息
     */
    private String msg;
}
